package com.hdaccp.foodsales.service.impl;

import com.hdaccp.foodsales.dao.VipDao;
import com.hdaccp.foodsales.entity.Vip;
import com.hdaccp.foodsales.service.VipService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class VipServiceImpl implements VipService {
    @Autowired
    private VipDao vipDao;
    @Override
    public List<Vip> findAll() {
        return vipDao.getAll();
    }

    @Override
    public Vip getById(int id) {
        return vipDao.getId(id);
    }

    @Override
    public int updateinfo(Vip vip) {
        return vipDao.updatehy(vip);
    }

    @Override
    public Vip query(String membername){return  vipDao.query(membername);}
}
